#include <pthread.h>
#include <stdio.h>

#include 

#define NUM_THREADS 4

void *run(void *arg) {
  fork();
  printf("PID %d Thread %d\n", getpid(), gettid());
  return NULL;
}

int main() {
  for (int i=0; i < NUM_THREADS; ++i) {
    pthread_t thread;
    pthread_create(&thread, NULL, &run, NULL);
    pthread_detach(thread);
    pthread_exit(NULL);
  }
  return 0;
}